package com.robot.orders.client;

import com.robot.orders.client.impl.CartDetailsClientImpl;
import com.robot.orders.client.impl.MemberClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author wuyunbin
 */
@Component
@FeignClient(value = "robot-member", fallback = CartDetailsClientImpl.class)
public interface CartDetailsClient {
    /**
     * 通过cartId 获取详细类目
     *
     * @param cartId
     * @return
     */
    @RequestMapping(value = "details/third/findByCartId/{cartId}", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
    public String thirdFindByCartId(@PathVariable String cartId);
}
